
public class Test {
    public static int add(int a,int b){
        return a+b;
    }
    public static int add(int...array){
        int sum = 0;
        for(int x:array){
            sum+=x;
        }
        return sum;
    }

    public static void main(String[] args) {
        int ret = add(new int[]{1,2,3,4});
        System.out.println(ret);
        System.out.printf("%d",'a');
    }
}
